const Koa = require("koa")


const app = new Koa();

app.use((ctx, next) => {
  // ctx.response.body = {
  //   name: "zyw",
  //   age: 18,
  // }

  // ctx.response.body = ["abc"]

  ctx.body = ["abc"]

  ctx.status = 200
})


app.listen(8000, () => {
  console.log("koa初体验服务器启动成功");
})